<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ include file="/jsp/common/index.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
    <title>查询系统用户</title>
		<%@ include file="/jsp/common/js.jsp"%>
		<%@ include file="/jsp/common/css.jsp"%>
		<base target="_self">
		<script language="javascript">
		<!--
		   function dataSelect()
		   {
		       g("form").submit();
		   }
		-->
		</script>
	</head>

	<body class="cbody">
		<%@ include file="/jsp/page/pagehead.jsp"%>
		<br/>
		<s:form id="form"  action="select" theme="simple">  
		<table width="90%" border="0" cellpadding="0" cellspacing="0" class="inputarea" align="center">
		<thead>
		    <tr class="detailrow">
		       <td class="tleft" colspan="3">&nbsp;查询系统用户</td>
		    </tr>
		</thead>
			<tr class="detailrow">
				<td class="tright" width="15%">
					员工编号&nbsp;
				</td>
				<td class="tleft" width="50%">
					<s:textfield label="员工编号：" name="vo.employeeNo" id="vo.employeeNo" maxlength= "20"  theme="simple" cssClass="largeinput"/>
				</td>
			</tr>
			
			<tr class="detailrow">
				<td class="tright" width="15%">
					姓名&nbsp;
				</td>
				<td class="tleft" width="50%">
					 <s:textfield label="姓名：" name="vo.name" id="vo.name" maxlength= "50" theme="simple" cssClass="largeinput"/>  
				</td>
			</tr>
			
			<tr>
				    <td class="tcenter">&nbsp;</td>
					<td class="tcenter">
					<span style="display: none"> 
						gotoPage<s:textfield name="gotoPage" id="gotoPage" /> 
						pageSize<s:textfield name="pageSize" id="pageSize" /> 
						firstPage<s:textfield name="firstPage" id="firstPage" /> 
						lastPage<s:textfield name="lastPage" id="lastPage" />
						nextPage<s:textfield name="nextPage" id="nextPage" />
						prePage<s:textfield name="prePage" id="prePage" /> 
						countPage<s:textfield name="countPage" id="countPage" />
						countData<s:textfield name="countData" id="countData" />
					</span>
						<input type="button" class="wbt" value="查询" id="selectButton"
							onclick="g('gotoPage').value='1';dataSelect();" />
					</td>
				    <td class="tcenter">&nbsp;</td>
				</tr>
			
            <tr>
				<td cospan="3" class="tcenter">
					&nbsp;
				</td>
			</tr>
 
		</table>
        </s:form>
        <input type="button" id="insertButton" class="wbt" value="添加" onclick="javascript:window.open(basePath+'manager/system/User/beforeInsert.htm');"/>
        <table id="selectResult" border="0" width="90%" class="datatb"  cellspacing="0" cellpadding="0" align="center">
			<thead>
				<tr class="datatrhead">
					<th onclick="sortTable('selectResult', 0, 'int')"  style="cursor:pointer">
		        		员工编号
		        		</th>
		        	<th onclick="sortTable('selectResult', 1, 'int')"  style="cursor:pointer">
		        		姓名
        			</th>
        			<th>
						操作
					</th>
        		</tr>
        	</thead>
        	<tbody>
        	<s:iterator value="userList" status="st">
        	<tr class="databody" style="cursor:pointer">
				<td class="tcenter">
					<s:property value="employeeNo"/>
				</td>
        		<td class="tcenter">
        			<s:property value="name"/>
        		</td>
        		<td class="tcenter">
					<input type="button" id="updateButton_<s:property value="#st.getIndex()"/>" class="wbt" value="修改" onclick="javascript:window.open(basePath+'manager/system/User/beforeUpdate.htm?vo.id=<s:property value="id"/>');"/>
					<input type="button" id="roleButton_<s:property value="#st.getIndex()"/>" class="wbt" value="设置角色" onclick="javascript:window.open(basePath+'manager/system/User/beforeSaveRole.htm?vo.id=<s:property value="id"/>');"/>
					<input type="button" id="functionButton_<s:property value="#st.getIndex()"/>" class="wbt" value="设置权限" onclick="javascript:window.open(basePath+'manager/system/User/beforeSaveFunction.htm?vo.id=<s:property value="id"/>');"/>
					<input type="button" id="deleteButton_<s:property value="#st.getIndex()"/>" class="wbt" value="删除" onclick="window.location='delete.htm?vo.id=<s:property value="id"/>';"/>
				</td>
        	</tr>
        	</s:iterator>
        	</tbody>
        	<tfoot>
				<tr height="25px">
					<td colspan="5" class="tright" >
					    共 <span id="allcount" class="red"><s:property value="countData"/></span> 条记录 &nbsp;	每页 <span id="pagesize" class="red"><s:property value="pageSize"/></span> 条记录&nbsp;
											共 <span id="pagecount" class="red"><s:property value="countPage"/></span> 页&nbsp;
											第 <span id="pageno" class="red"><s:property value="gotoPage"/></span> 页&nbsp;&nbsp;
											<input type="button" class="wbt" value="首页" onclick="if(g('gotoPage').value!=g('firstPage').value){g('gotoPage').value=g('firstPage').value;dataSelect();}else{alert('已经在首页');}"/>
											&nbsp;
											<input type="button" class="wbt" value="上一页" onclick="if(g('gotoPage').value!=g('firstPage').value){g('gotoPage').value=g('prePage').value;dataSelect();}else{alert('已经在首页');}" />
											&nbsp;
											<input type="button" class="wbt" value="下一页" onclick="if(g('gotoPage').value != g('countPage').value){g('gotoPage').value=g('nextPage').value;dataSelect();}else{alert('已经在末页');}" />
											&nbsp;
											<input type="button" class="wbt" value="末页" onclick="if(g('gotoPage').value != g('lastPage').value){g('gotoPage').value=g('lastPage').value;dataSelect();}else{alert('已经在末页');}" />
											&nbsp;&nbsp;
					</td>
				</tr>
			</tfoot>
        </table>
		<%@ include file="/jsp/page/foot.jsp"%>
	</body>
</html>
